#include<iostream>
using namespace std;

const int N = 1e5;

int s1[N], s2[N], ret[N];
string ss1, ss2;
int len1, len2, len;
int main()
{
	cin >> ss1 >> ss2;
	len1 = ss1.size(); len2 = ss2.size(), len = len1 + len2;
	for (int i = 0; i < len1; i++)
	{
		s1[i] = ss1[len1 - i - 1] - '0';
	}
	for (int i = 0; i < len2; i++)
	{
		s2[i] = ss2[len2 - i - 1] - '0';
	}

	for (int i = 0; i < len1; i++)
	{
		for (int j = 0; j < len2; j++)
		{
			ret[i + j] += s1[i] * s2[j];
		}
	}

	for (int i = 0; i < len; i++)
	{
		ret[i + 1] += ret[i] / 10;
		ret[i] %= 10;
	}

	while (len > 1 && ret[len - 1] == 0) len--;
	for (int i = 0; i < len; i++) cout << ret[i];
	return 0;
}